home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / linux / faq / part2 < prev    next >
Internet Message Format  |  1994-04-11  |  44KB

  1. Path: bloom-beacon.mit.edu!hookup!news.moneng.mei.com!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!iwj10
  2. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  3. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers
  4. Subject: Linux Frequently Asked Questions with Answers (FAQ: 2/2)
  5. Supersedes: <ijackson-linux-faq2-2-1994-pt2@nyx.cs.du.edu>
  6. Followup-To: poster
  7. Date: Sun, 10 Apr 1994 12:05:36 GMT
  8. Organization: Linux Unlimited
  9. Lines: 1007
  10. Sender: iwj10@cus.cam.ac.uk (Ian Jackson)
  11. Approved: *.answers moderation team <news-answers-request@mit.edu>,
  12.           Matt Welsh <linux-announce-request@tc.cornell.edu>
  13. Expires: Sun, 15 May 1994 12:05:36 GMT
  14. Message-ID: <ijackson-linux-faq2-3-1994-pt2@nyx.cs.du.edu>
  15. References: <ijackson-linux-faq2-3-1994@nyx.cs.du.edu>
  16. NNTP-Posting-Host: bootes.cus.cam.ac.uk
  17. Summary: Please read the whole FAQ before posting to comp.os.linux.help.
  18. Keywords: FAQ, Linux, part2
  19. Originator: iwj10@bootes.cus.cam.ac.uk
  20. Xref: bloom-beacon.mit.edu comp.os.linux.announce:2090 comp.os.linux.help:30653 comp.answers:4856 news.answers:17903
  21.  
  22. Archive-Name: linux/faq/part2
  23. Last-Modified: 10 Apr 1994
  24.  
  25. (Continued from part 1, where you'll find the introduction and
  26.  table of contents.)
  27. ===============================================================================
  28.  
  29. Section 6.  Miscellaneous questions and problems
  30.  
  31.  Q6.1        How do I make my executables smaller ?
  32.  Q6.2        How many people use Linux ?
  33.  Q6.3        How can I get scrollback on text VC's ?
  34.  Q6.4        Setuid scripts don't seem to work.
  35.  Q6.5        Free memory as reported by free keeps shrinking.
  36.  Q6.6        What is a BogoMip ?
  37.  Q6.7        How do I set the timezone ?
  38.  Q6.8        What version of Linux and what machine name am I using ?
  39.  Q6.9        When I add more memory it slows to a crawl.
  40.  Q6.10       Some programs (e.g. xdm) won't let me log in.
  41.  Q6.11       Some programs let me log in with no password.
  42.  Q6.12       My machine runs very slowly when I run GCC / X / ...
  43.  Q6.13       I can only log in as root.
  44.  Q6.14       How can I produce core files ?
  45.  Q6.15       How do I stop producing core files ?
  46.  Q6.16       My keyboard goes all funny after I switch VC's.
  47.  Q6.17       My screen is all full of weird characters instead of letters.
  48.  Q6.18       What is a .gz file ? And a .tgz ? And ... ?
  49.  Q6.19       I have screwed up my system and can't log in to fix it.
  50.  Q6.20       How do I upgrade/recompile my kernel ?
  51.  Q6.21       Can I have more than 3 serial ports by sharing interrupts ?
  52.  Q6.22       Emacs just dumps core.
  53.  Q6.23       How do I make a bootable floppy ?
  54.  Q6.24       How do I remap my keyboard to UK, French, etc. ?
  55.  Q6.25       I've discovered a huge security hole in rm !
  56.  Q6.26       lpr and lpd aren't working.
  57.  Q6.27       How do I make a shared library ?
  58.  Q6.28       What does VFS stand for ?
  59.  
  60. -------------------------------------------------------------------------------
  61.  
  62. Question 6.1.  How do I make my executables smaller ?
  63.  
  64. The most common cause of large executables is the -g compiler flag.  This
  65. causes (as well as debugging information in the output file) the resulting
  66. program to be linked statically, i.e. by including a copy of the C library
  67. in it instead of using a dynamically linked copy.
  68.  
  69. Other things that are worth investigating are -O and -O2 which enable
  70. optimisation (check the GCC documentation), -s which strips the symbol
  71. information from the resulting binary (making debugging totally
  72. impossible).
  73.  
  74. On very small executables you may wish to use -N, but you shouldn't do
  75. this unless you understand its performance implications.
  76.  
  77. -------------------------------------------------------------------------------
  78.  
  79. Question 6.2.  How many people use Linux ?
  80.  
  81. Linux is freely available, and no one is required to register their copies
  82. with any central authority, so it is difficult to know.  Several
  83. businesses are now surviving solely on selling and supporting Linux, and
  84. very few Linux users use those businesses, relatively speaking.  The Linux
  85. newsgroups are some of the most heavily read on the Net, so the number is
  86. likely in the hundreds of thousands, but firm numbers are hard to come by.
  87.  
  88. However, one brave soul, Harald T. Alvestrand
  89. <Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if you
  90. use Linux, you send a message to linux-counter@uninett.no with one of the
  91. following subjects: `I use Linux at home', `I use Linux at work', or `I
  92. use Linux at home and at work'.  He will also accept `third-party'
  93. registrations - ask him for details.  He posts his counts to
  94. comp.os.linux.misc.
  95.  
  96. -------------------------------------------------------------------------------
  97.  
  98. Question 6.3.  How can I get scrollback on text VC's ?
  99.  
  100. With the default US keymap you can use Shift with the PageUp and PageDown
  101. keys (NB these must be the grey ones, not the ones that are on the numeric
  102. keypad !).  With other keymaps check the maps in /usr/lib/keytables; you
  103. can remap the scroll up and down keys to be whatever you like --- for
  104. example, in order to remap them to keys that exist on an 84-key AT
  105. keyboard.
  106.  
  107. You can't increase the amount of scrollback, because of the way it is
  108. implemented using the video memory to store the scrollback text, though
  109. you may be able to get more scrollback in each VC by reducing the total
  110. number of VC's --- see <linux/tty.h>.
  111.  
  112. -------------------------------------------------------------------------------
  113.  
  114. Question 6.4.  Setuid scripts don't seem to work.
  115.  
  116. That's right.  This feature has been specifically disabled in the Linux
  117. kernel because setuid scripts are almost always a security hole.  If you
  118. want to know why read the FAQ for comp.unix.questions.
  119.  
  120. -------------------------------------------------------------------------------
  121.  
  122. Question 6.5.  Free memory as reported by free keeps shrinking.
  123.  
  124. The `free' figure printed by free doesn't include memory used as a disk
  125. buffer cache - shown in the `buffers' column.  If you want to know how
  126. much memory is really free add the `buffers' amount to `free'.
  127.  
  128. The disk buffer cache tends to grow soon after starting Linux up, as you
  129. load more programs and use more files and the contents get cached.  It
  130. will stabilise after a while.
  131.  
  132. -------------------------------------------------------------------------------
  133.  
  134. Question 6.6.  What is a BogoMip ?
  135.  
  136. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  137. who you listen to) Millions of Instructions per Second, or Meaningless
  138. Indication of Processor Speed.
  139.  
  140. The number printed at boot-time is the result of a kernel timing
  141. calibration, used for very short delay loops by some device drivers.
  142.  
  143. As a very approximate guide the BogoMips will be approximately:
  144.           386SX               clock * 0.125 + 0.2
  145.           386DX               clock * 0.20 - 0.6
  146.           486SX/DX            clock * 0.49 + 0.25
  147.           486DX2              clock * 0.50 + 0.37
  148.           Pentium             24.0
  149.  
  150. If the number you're seeing is wildly lower than this you may have the
  151. Turbo button or CPU speed set incorrectly, or have some kind of caching
  152. problem [as described in Q6.9 `When I add more memory it slows to a
  153. crawl.'.]
  154.  
  155. For values people have seen with other, rarer, chips, see the Bogomips
  156. Information Sheet, published by Wim van Dorst <baron@clifton.hobby.nl> in
  157. comp.os.linux.announce.
  158.  
  159. -------------------------------------------------------------------------------
  160.  
  161. Question 6.7.  How do I set the timezone ?
  162.  
  163. Change directory to /usr/lib/zoneinfo; get the timezone package if you
  164. don't have this directory.  The source can be found on sunsite.unc.edu in
  165. /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  166.  
  167. Then make a symbolic link named localtime pointing to one of the files in
  168. this directory (or a subdirectory), and one called posixrules pointing to
  169. localtime.  For example:
  170.    ln -sf US/Mountain localtime
  171.    ln -sf localtime posixrules
  172. This change will take effect immediately - try date.
  173.  
  174. Don't try to use the TZ variable - leave it unset.
  175.  
  176. If you have a system which complies with a very recent version of the
  177. Linux Filesystem Standard you will find that /usr/lib/zoneinfo/localtime
  178. is a symbolic link to /etc/localtime.  In this case, simply copy the
  179. appropriate file from /usr/lib/zoneinfo to /etc/localtime and leave the
  180. link alone.  For example:
  181.    cp /usr/lib/zoneinfo/US/Mountain /etc/localtime
  182.  
  183. -------------------------------------------------------------------------------
  184.  
  185. Question 6.8.  What version of Linux and what machine name am I using ?
  186.  
  187. Type:
  188.    uname -a
  189.  
  190. -------------------------------------------------------------------------------
  191.  
  192. Question 6.9.  When I add more memory it slows to a crawl.
  193.  
  194. This is quite a common symptom of a failure to cache the additional
  195. memory.  The exact problem depends on your motherboard.
  196.  
  197. Sometimes you have to enable caching of certain regions in your BIOS
  198. setup.  Look in the CMOS setup and see if there is an option to cache the
  199. new memory area which is currently switched off.  This is apparently most
  200. common on a 486.
  201.  
  202. Sometimes the RAMs have to be in certain sockets to be cached.
  203.  
  204. Sometimes you have to set jumpers to enable the caching.
  205.  
  206. Some motherboards don't cache all the RAM if you have more RAM per amount
  207. of cache than they expect.  Usually a full 256K cache will solve this
  208. problem.
  209.  
  210. If in doubt, check your motherboard manual.  If you still can't fix it
  211. because the documentation is inadequate you might like to post a message
  212. giving *all* the details - make, model number, date code, etc. so that
  213. other Linux users can avoid it.
  214.  
  215. -------------------------------------------------------------------------------
  216.  
  217. Question 6.10.  Some programs (e.g. xdm) won't let me log in.
  218.  
  219. You are probably using non-shadow-password programs but are using shadow
  220. passwords.
  221.  
  222. If so, you have to get or compile a shadow password version of the
  223. program(s) in question.  The shadow password suite can be found in
  224. (amongst other places):
  225.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  226. This is the source code; you will probably find the binaries in
  227. .../linux/binaries/usr.bin.
  228.  
  229. -------------------------------------------------------------------------------
  230.  
  231. Question 6.11.  Some programs let me log in with no password.
  232.  
  233. You probably have the same problem as in Q6.10 `Some programs (e.g. xdm)
  234. won't let me log in.', with an added wrinkle:
  235.  
  236. If you are using shadow passords you should put an asterisk in the
  237. password field of /etc/passwd for each account, so that if a program
  238. doesn't know about the shadow passwords it won't think it's a passwordless
  239. account and let anyone in.
  240.  
  241. -------------------------------------------------------------------------------
  242.  
  243. Question 6.12.  My machine runs very slowly when I run GCC / X / ...
  244.  
  245. You probably don't have any swap enabled.  You need to enable swapping to
  246. allow Linux to page out bits of data programs aren't using at the moment
  247. to disk to make more room for other programs and data.  If you don't Linux
  248. has to keep data in memory and throw away in-memory copies of programs
  249. (which are paged straight from the filesystem) and so less and less
  250. program is in memory and everything runs very slowly.
  251.  
  252. See the Installation HOWTO and the Installation and Getting Started Guide
  253. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  254. of how to set up a swap partition or swapfile; see also Q4.5 `My swap area
  255. isn't working.'.
  256.  
  257. Alternatively you may have too little real memory.  If you have less RAM
  258. than all the programs you're running at once use Linux will use your hard
  259. disk instead and thrash horribly.  The solution in this case is to not run
  260. so many things at once or to buy more memory.  You can also reclaim some
  261. memory by compiling and using a kernel with less options configured.  See
  262. Q6.20 `How do I upgrade/recompile my kernel ?'.
  263.  
  264. You can tell how much memory and/or swap you're using by using the free
  265. command, or by typing
  266.     cat /proc/meminfo
  267.  
  268. -------------------------------------------------------------------------------
  269.  
  270. Question 6.13.  I can only log in as root.
  271.  
  272. You probably have some permission problems, or you have a file
  273. /etc/nologin.
  274.  
  275. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.
  276.  
  277. Otherwise check the permissions on your shell, and any filenames which
  278. appear in error messages, and also the directories containing these files
  279. all the way back up the tree to the root directory.
  280.  
  281. -------------------------------------------------------------------------------
  282.  
  283. Question 6.14.  How can I produce core files ?
  284.  
  285. Since 0.99pl14 Linux has had corefiles turned off by default for all
  286. processes.  You can turn them on by using the ulimit command in bash, or
  287. the limit command in tcsh.  See the manpages or Q6.15 `How do I stop
  288. producing core files ?' for more details.
  289.  
  290. After executing that command all programs run from that shell (directly or
  291. indirectly) will be able to dump core.
  292.  
  293. If you wish to enable coredumping for all processes by default you can
  294. change the default setting in <linux/sched.h> - see the definition of
  295. INIT_TASK.
  296.  
  297. -------------------------------------------------------------------------------
  298.  
  299. Question 6.15.  How do I stop producing core files ?
  300.  
  301. If you use bash put
  302.    ulimit -c 0
  303. in your .shrc or .bashrc; if you use tcsh put
  304.    limit coredumpsize 0
  305. in your .cshrc.  For other shells check the shell's manpage.
  306.  
  307. This state of affairs is the default with newer kernels.
  308.  
  309. -------------------------------------------------------------------------------
  310.  
  311. Question 6.16.  My keyboard goes all funny after I switch VC's.
  312.  
  313. This is a bug in kernel versions before 0.99pl14-alpha-n.  Sometimes Linux
  314. loses track of what modifier keys (Shift, Alt, Control etc.) are pressed
  315. or not, and believes that one or more are pressed when they are not.  The
  316. solution is to press and release each of the modifier keys (without
  317. pressing any other keys) --- this will ensure that Linux knows what state
  318. the keyboard is actually in.
  319.  
  320. This problem often occurs when switching out of X windows; it can
  321. sometimes be avoided by releasing Ctrl and Alt very quickly after pressing
  322. the F-key of the VC you are switching to.
  323.  
  324. -------------------------------------------------------------------------------
  325.  
  326. Question 6.17.  My screen is all full of weird characters instead of letters.
  327.  
  328. You probably sent some binary data to your screen by mistake.  Type echo
  329. "^V^[c" (that's E C H O space control-V escape C return) to fix it.
  330.  
  331. -------------------------------------------------------------------------------
  332.  
  333. Question 6.18.  What is a .gz file ? And a .tgz ? And ... ?
  334.  
  335. .gz (and .z) files have been compressed using GNU gzip.  You have to get a
  336. copy of gunzip (included in the gzip distribution and with most Linux
  337. installations) to unpack the file.
  338.  
  339. .taz and .tz are tarfiles (made with Unix tar) compressed using standard
  340. Unix compress.
  341.  
  342. .tgz (or .tpz) is a tarfile compressed with gzip.
  343.  
  344. The file command can often tell you what a file is.
  345.  
  346. If you find that gzip complains when you try to uncompress a gzipped file
  347. you probably downloaded it in ASCII mode by mistake.  You must download
  348. most things in binary mode - remember to type binary as a command in FTP
  349. before using get to get the file.
  350.  
  351. -------------------------------------------------------------------------------
  352.  
  353. Question 6.19.  I have screwed up my system and can't log in to fix it.
  354.  
  355. Reboot from an emergency floppy, for example the Slackware a1 disk or the
  356. MCC installation boot floppy.  Get to a shell prompt and mount your hard
  357. disk with something like
  358.    mount -t ext2 /dev/hda1 /mnt
  359.  
  360. Then your filesystem is available under the directory /mnt and you can fix
  361. the problem.  Remember to unmount your hard disk before rebooting (cd back
  362. down to / first or it will say it's busy).
  363.  
  364. -------------------------------------------------------------------------------
  365.  
  366. Question 6.20.  How do I upgrade/recompile my kernel ?
  367.  
  368. See the README which comes with the kernel release, in
  369.         ftp.funet.fi:/pub/OS/Linux/PEOPLE/Linus
  370. and mirrors thereof.  Try to get it from a closer site if possible;
  371. ftp.funet.fi is a very busy site and therefore slow -- see Q2.3 `How do I
  372. install Linux ?'.  You may already have a version of the kernel source
  373. code installed on your system, but if you got it as part of a standard
  374. distribution it is likely to be somewhat out of date (this is not a
  375. problem if you only want a custom-configured kernel, but it probably is if
  376. you need to upgrade.)
  377.  
  378. Remember that to make the new kernel boot you must run LILO after copying
  379. the kernel into your root partition -- the Makefile in recent kernels has
  380. a special zlilo target for this; try make zlilo.
  381.  
  382. -------------------------------------------------------------------------------
  383.  
  384. Question 6.21.  Can I have more than 3 serial ports by sharing interrupts ?
  385.  
  386. Not without some trickery.  This is a limitation of the ISA bus
  387. architecture.
  388.  
  389. See the Serial HOWTO for information about how to work around this
  390. problem.
  391.  
  392. -------------------------------------------------------------------------------
  393.  
  394. Question 6.22.  Emacs just dumps core.
  395.  
  396. You probably have the X version of Emacs that comes with SLS.  It doesn't
  397. work without the X libraries.  The solution is to install X Windows or get
  398. a newer Emacs binary without any X Windows support.
  399.  
  400. -------------------------------------------------------------------------------
  401.  
  402. Question 6.23.  How do I make a bootable floppy ?
  403.  
  404. Make a filesystem on it with bin, etc and lib directories -- everything
  405. you need.  Install a kernel on it and arrange to have LILO boot it from
  406. the floppy (see the LILO documentation, in lilo.u.*.ps).
  407.  
  408. If you build the kernel (or tell LILO to tell the kernel) to have a
  409. ramdisk the same size as the floppy the ramdisk will be loaded at
  410. boot-time and mounted as root in place of the floppy.
  411.  
  412. -------------------------------------------------------------------------------
  413.  
  414. Question 6.24.  How do I remap my keyboard to UK, French, etc. ?
  415.  
  416. For recent kernels, get kbd*.tar.gz from the same place as you got the
  417. kernel source.  Make sure you get the appropriate version; you have to use
  418. the right keyboard-mapping package to go with your kernel version.  The
  419. latest at the time of writing is kbd-0.85.tar.gz, which works with at
  420. kernel versions from 1.0.
  421.  
  422. For older kernels you have to edit the top-level kernel Makefile, in
  423. /usr/src/linux.
  424.  
  425. You may find more helpful information in the Keyboard FAQ, on ftp.funet.fi
  426. in /pub/OS/Linux/doc/kbd.FAQ.
  427.  
  428. -------------------------------------------------------------------------------
  429.  
  430. Question 6.25.  I've discovered a huge security hole in rm !
  431.  
  432. No you haven't.  You are obviously new to Unix and need to read a good
  433. book on it to find out how things work.  Clue: ability to delete files
  434. under Unix depends on permission to write the directory they are in.
  435.  
  436. -------------------------------------------------------------------------------
  437.  
  438. Question 6.26.  lpr and lpd aren't working.
  439.  
  440. Check the Printing HOWTO [Q2.1 `Where can I get the HOWTOs and other
  441. documentation ?'].
  442.  
  443. -------------------------------------------------------------------------------
  444.  
  445. Question 6.27.  How do I make a shared library ?
  446.  
  447. Get tools-2.11.tar.gz from tsx-11.mit.edu, in /pub/linux/packages/GCC.
  448. Read the documentation enclosed with these tools for instructions.
  449.  
  450. -------------------------------------------------------------------------------
  451.  
  452. Question 6.28.  What does VFS stand for ?
  453.  
  454. Virtual File System.  It's the abstraction layer between the user and real
  455. filesystems like ext2, minix and msdos.  Amongst other things, its job is
  456. to flush the read buffer when it detects a disk change on the floppy disk
  457. drive:
  458.    VFS: Disk change detected on device 2/0
  459.  
  460. This would seem like an appropriate entry for a glossary - Matt, are there
  461. any plans to produce such a thing ?
  462.  
  463. ===============================================================================
  464.  
  465. Section 7.  Frequently Encountered Error messages
  466.  
  467.  Q7.1        fdisk says Partition X has different phsyical/logical ...
  468.  Q7.2        fdisk: Partition 1 does not start on cylinder boundary
  469.  Q7.3        lp1 on fire
  470.  Q7.4        INET: Warning: old style ioctl(IP_SET_DEV) called!
  471.  Q7.5        ld: unrecognized option '-m486'
  472.  Q7.6        GCC says Internal compiler error
  473.  Q7.7        make says Error 139
  474.  Q7.8        df says Cannot read table of mounted filesystems
  475.  Q7.9        shell-init: permission denied when I log in.
  476.  Q7.10       No utmp entry.  You must exec ... when I log in.
  477.  Q7.11       EXT2-fs: warning: mounting unchecked filesystem
  478.  Q7.12       EXT2-fs warning: maximal count reached
  479.  Q7.13       EXT2-fs warning: checktime reached
  480.  Q7.14       fdisk says cannot use nnn sectors of this partition
  481.  Q7.15       fdisk says partition n has an odd number of sectors
  482.  Q7.16       mtools says cannot initialise drive XYZ
  483.  Q7.17       My AHA1542C doesn't work with Linux.
  484.  
  485. -------------------------------------------------------------------------------
  486.  
  487. Question 7.1.  fdisk says Partition X has different phsyical/logical ...
  488.  
  489. If the partition number (X, above) is 1 this is the same problem as Q7.2
  490. `fdisk: Partition 1 does not start on cylinder boundary'.
  491.  
  492. If the partition begins or ends on a cylinder numbered beyond 1024, this
  493. is because standard DOS disk geometry information format in the partition
  494. table can't cope with cylinder numbers with more than 10 bits.
  495.  
  496. This will cause DOS to be unable to access the partition correctly, and
  497. will make booting a Linux kernel from that partition using LILO
  498. problematic at best.
  499.  
  500. You can still use the partition for Linux or other operating systems that
  501. use linear addressing (ie, number the disk blocks sequentially without
  502. looking at heads, tracks and sectors).
  503.  
  504. I'd recommend creating at least one Linux partition entirely under the
  505. 1024-cylinder limit and booting off that; the other partitions will then
  506. be OK.
  507.  
  508. -------------------------------------------------------------------------------
  509.  
  510. Question 7.2.  fdisk: Partition 1 does not start on cylinder boundary
  511.  
  512. The version of fdisk that comes with many Linux systems creates partitions
  513. that fail its own validity checking.  Unfortunately if you've already
  514. installed your system there's not much you can do about this, apart from
  515. copying the data off the partition, deleting and remaking it, and copying
  516. the data back.
  517.  
  518. If you are creating a new partition 1 that starts in the first cylinder,
  519. you can do the following to get a partition that fdisk likes.
  520.  
  521. 1. Create partition 1 in the normal way.  A p listing will produce the
  522. mismatch complaint.
  523.  
  524. 2. Type u to set sector mode and do p again.  Copy down the number from
  525. the "End" column.
  526.  
  527. 3. Delete partition 1.
  528.  
  529. 4. While still in sector mode recreate partition 1.  Set the first sector
  530. to match the number of sectors per track.  This is the sector number in
  531. the first line of the p output.  Set the last sector to the value noted in
  532. 2. above.
  533.  
  534. 5. Type u to reset cylinder mode and continue with other partitions.
  535.  
  536. -------------------------------------------------------------------------------
  537.  
  538. Question 7.3.  lp1 on fire
  539.  
  540. This is a joke/traditional error message indicating that some sort of
  541. error is being reported by your printer, but it isn't offline or out of
  542. paper.  It may be that you have some kind of I/O or IRQ conflict - check
  543. your cards' settings.  Hopefully it isn't really on fire ...
  544.  
  545. -------------------------------------------------------------------------------
  546.  
  547. Question 7.4.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  548.  
  549. You are trying to use the old network configuration utilities; the new
  550. ones can be found on tsx-11.mit.edu in
  551. /pub/linux/packages/net/net-2/binaries.
  552.  
  553. Note that they cannot be used just like the old-style programs; see the
  554. NET-2 HOWTO for instructions on how to set up networking correctly.
  555.  
  556. -------------------------------------------------------------------------------
  557.  
  558. Question 7.5.  ld: unrecognized option '-m486'
  559.  
  560. You have an old version of ld.  Install a newer binutils package -- this
  561. will contain an updated ld:
  562.    tsx-11.mit.edu:/pub/linux/packages/GCC/binutils.tar.z
  563.  
  564. -------------------------------------------------------------------------------
  565.  
  566. Question 7.6.  GCC says Internal compiler error
  567.  
  568. If the fault is repeatable (ie, it always happens at the same place in the
  569. same file) you have discovered a bug in GCC.  See the GCC Info
  570. documentation (type Control-h i in Emacs, and select GCC from the menu)
  571. for details on how to report this -- make sure you have the latest version
  572. though.
  573.  
  574. Note that this is probably not a Linux-specific problem; unless you were
  575. compiling a program many other Linux users also compile you should not
  576. post your bug report to any of the comp.os.linux groups.
  577.  
  578. If the problem is not repeatable you are very probably experiencing memory
  579. corruption --- see Q7.7 `make says Error 139'.
  580.  
  581. -------------------------------------------------------------------------------
  582.  
  583. Question 7.7.  make says Error 139
  584.  
  585. Your compiler driver (gcc) dumped core.  You probably have a corrupted,
  586. buggy or old version of GCC --- get the latest release.  Alternatively you
  587. may be running out of swap space --- see Q6.12 `My machine runs very
  588. slowly when I run GCC / X / ...' for more info.
  589.  
  590. If this doesn't fix the problem you are probably having problems with
  591. memory or disk corruption.  Check that the clock rate, wait states and
  592. refresh timing for your SIMMs are correct.  If so you may have some dodgy
  593. SIMMs or a faulty hard disk or controller.
  594.  
  595. Linux, like any Unix, is a very good memory tester --- much better than
  596. DOS-based memory test programs.
  597.  
  598. Reportedly some clone x87 maths coprocessors can cause problems; try
  599. compiling a kernel with maths emulation [Q6.20 `How do I upgrade/recompile
  600. my kernel ?']; you may need to use the no387 kernel command line flag on
  601. the LILO prompt to force the kernel to use it, or it may be able to work
  602. and still use the 387, with the maths emulation compiled in but mainly
  603. unused.
  604.  
  605. -------------------------------------------------------------------------------
  606.  
  607. Question 7.8.  df says Cannot read table of mounted filesystems
  608.  
  609. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  610. If you have a reasonably new version of mount, /etc/mtab should be emptied
  611. or deleted at boot time (in /etc/rc or /etc/rc.local), using something
  612. like
  613.    rm -f /etc/mtab*
  614.  
  615. Some versions of SLS have an entry for the root partition in /etc/mtab
  616. made in /etc/rc by using rdev.  This is incorrect -- the newer versions of
  617. mount do this automatically.
  618.  
  619. Other versions of SLS have a line in /etc/fstab that looks like:
  620.     /dev/sdb1   /root   ext2   defaults
  621. This is wrong.  /root should read simply /.
  622.  
  623. -------------------------------------------------------------------------------
  624.  
  625. Question 7.9.  shell-init: permission denied when I log in.
  626.  
  627. Your root directory and all the directories up to your home directory must
  628. be readable and executable by everybody.  See the manpage for chmod or a
  629. book on Unix for how to fix the problem.
  630.  
  631. -------------------------------------------------------------------------------
  632.  
  633. Question 7.10.  No utmp entry.  You must exec ... when I log in.
  634.  
  635. Your /etc/utmp is screwed up.  You should have
  636.    > /etc/utmp
  637. in your /etc/rc or /etc/rc.local.  See Q6.19 `I have screwed up my system
  638. and can't log in to fix it.' for how to be able to do this.
  639.  
  640. -------------------------------------------------------------------------------
  641.  
  642. Question 7.11.  EXT2-fs: warning: mounting unchecked filesystem
  643.  
  644. You need to run e2fsck (or fsck -t ext2 if you have the fsutils package)
  645. with the -a option to get it to clear the `dirty' flag, and then cleanly
  646. unmount the partition during each shutdown.
  647.  
  648. The easiest way to do this is to get the bootutils package, available on
  649. sunsite and tsx-11.  You have to make sure you have a recent umount
  650. command.
  651.  
  652. NB don't try to check a filesystem that's mounted read-write - this
  653. includes the root partition if you don't see
  654.    VFS: mounted root ... read-only
  655. at boot time.  You must arrange for to initially mount the root filesystem
  656. readonly, check it if necessary, and then remount it read-write.  Read the
  657. documentation that comes with bootutils to find out how to do this.
  658.  
  659. Note that you need to specify the -n option to mount to get it not to try
  660. to update /etc/mtab, since the root filesystem is still read-only and this
  661. will otherwise cause it to fail !
  662.  
  663. -------------------------------------------------------------------------------
  664.  
  665. Question 7.12.  EXT2-fs warning: maximal count reached
  666.  
  667. This message is issued by the kernel when it mounts a filesystem that's
  668. marked as clean, but whose `number of mounts since check' counter has
  669. reached the predifined value.  The solution is to get the latest version
  670. of the ext2fs utilities (e2fsprogs-0.4a.tar.gz at the time of writing)
  671. from the usual sites [Q2.4 `Where can I get Linux material by FTP ?'].
  672.  
  673. The maximal number of mounts value can be examined and changed using the
  674. tune2fs program from this package.
  675.  
  676. -------------------------------------------------------------------------------
  677.  
  678. Question 7.13.  EXT2-fs warning: checktime reached
  679.  
  680. Kernels from 1.0 onwards support checking a filesystem based on the
  681. elapsed time since the last check as well as by the number of mounts.  Get
  682. the latest version of the ext2fs utilities [see Q7.12 `EXT2-fs warning:
  683. maximal count reached'].
  684.  
  685. -------------------------------------------------------------------------------
  686.  
  687. Question 7.14.  fdisk says cannot use nnn sectors of this partition
  688.  
  689. Originally Linux only supported the Minix filesystem, which cannot use
  690. more than 64Mb per parition.  This limitation is not present in the more
  691. advanced filesystems now available, such as ext2fs (the 2nd version of the
  692. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  693.  
  694. If you intend to use ext2fs or xiafs you can ignore the message.
  695.  
  696. -------------------------------------------------------------------------------
  697.  
  698. Question 7.15.  fdisk says partition n has an odd number of sectors
  699.  
  700. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  701. 1K blocks.  If you have a partition with an odd number of sectors the last
  702. sector is wasted.  Ignore the message.
  703.  
  704. -------------------------------------------------------------------------------
  705.  
  706. Question 7.16.  mtools says cannot initialise drive XYZ
  707.  
  708. This means that mtools is having trouble accessing the drive.  This can be
  709. due to several things.
  710.  
  711. Often this is due to the permissions on floppy drive devices (/dev/fd0*
  712. and /dev/fd1*) being incorrect --- the user running mtools must have the
  713. appropriate access.  See the manpage for chmod for details.
  714.  
  715. Most versions of mtools distributed with Linux systems (not the standard
  716. GNU version) use the contents of a file /etc/mtools to discover which
  717. devices and densities to use, in place of having this information compiled
  718. into the binary.  Mistakes in this file often cause problems.  There is
  719. often no documentation about this --- distribution packagers please note
  720. that this is *evil*.
  721.  
  722. For the easiest way to access your DOS files (especially those on a hard
  723. disk partition) see Q3.2 `How do I access files on my DOS partition or
  724. floppy ?'.  Note - you should never use mtools to access files on an
  725. msdosfs mounted partition or disk !
  726.  
  727. -------------------------------------------------------------------------------
  728.  
  729. Question 7.17.  My AHA1542C doesn't work with Linux.
  730.  
  731. You need to turn off most of the "advanced BIOS" options - all but the one
  732. about scanning the bus for bootable devices.  The option to allow disks
  733. with more than 1024 cylinders is only required as a workaround for a DOS
  734. misfeature and should be turned *off* under Linux.
  735.  
  736. ===============================================================================
  737.  
  738. Section 8.  The X Window System
  739.  
  740.  Q8.1        Does Linux support X Windows ?
  741.  Q8.2        Where can I get an Xconfig for my video card and monitor ?
  742.  Q8.3        xterm logins show up strangely in who, finger
  743.  Q8.4        I can't get X Windows to work right.
  744.  
  745. -------------------------------------------------------------------------------
  746.  
  747. Question 8.1.  Does Linux support X Windows ?
  748.  
  749. Yes.  Linux uses XFree86 2.0, which is a derivative of X11R5.  You need to
  750. have a video card which is supported by XFree86 2.0.  See the Linux
  751. XFree86 HOWTO for more details.
  752.  
  753. Some of the Linux releases -- MCC, for example -- don't come with X
  754. Windows already included; however you can easily download and install it
  755. from /pub/Linux/X11/Xfree86-2.0 on sunsite.unc.edu and its mirror sites.
  756. Read the XFree86 HOWTO for installation instructions.
  757.  
  758. Other releases -- Slackware, Debian, TAMU and SLS, for example -- come
  759. with X Windows already included
  760.  
  761. -------------------------------------------------------------------------------
  762.  
  763. Question 8.2.  Where can I get an Xconfig for my video card and monitor ?
  764.  
  765. See the Linux XFree86 HOWTO.
  766.  
  767. You'll need to put together your own Xconfig file, because it depends on
  768. the exact combination of video card and monitor you have.  It's not that
  769. hard to do -- read the instructions that came with XFree86-2.0, in
  770. /usr/X386/lib/X11/etc.  The file you probably most need to look at is
  771. README.Config.
  772.  
  773. Please don't post to comp.os.linux.help asking for an Xconfig.
  774.  
  775. -------------------------------------------------------------------------------
  776.  
  777. Question 8.3.  xterm logins show up strangely in who, finger
  778.  
  779. The xterm that comes with XFree86 2.0 and earlier doesn't correctly
  780. understand the format that Linux uses for the /etc/utmp file, where the
  781. system records who is logged in.  It therefore doesn't set all the
  782. information correctly.
  783.  
  784. I do not know whether XFree86 2.1 fixes this problem.
  785.  
  786. -------------------------------------------------------------------------------
  787.  
  788. Question 8.4.  I can't get X Windows to work right.
  789.  
  790. Read the XFree86 HOWTO - note the question and answer section.
  791.  
  792. Try reading to comp.windows.x.i386unix -- specifically read the the FAQ
  793. for that group.
  794.  
  795. Please don't post X Windows or XFree86 related questions to
  796. comp.os.linux.help unless they are Linux-specific.
  797.  
  798. ===============================================================================
  799.  
  800. Section 9.  How to get further assistance
  801.  
  802.  Q9.1        You still haven't answered my question !
  803.  Q9.2        What to put in a posting to comp.os.linux.help
  804.  
  805. -------------------------------------------------------------------------------
  806.  
  807. Question 9.1.  You still haven't answered my question !
  808.  
  809. Please read all of this answer before posting.  I know it's a bit long,
  810. but you may be about to make a fool of yourself in front of 50000 people
  811. and waste hundreds of hours of their time.  Don't you think it's worth it
  812. to spend some of your time reading and following these instructions ?
  813.  
  814. If you think an answer is incomplete or inaccurate, please mail Ian
  815. Jackson at <ijackson@nyx.cs.du.edu>.
  816.  
  817. Read the appropriate Linux Documentation Project books - see Q2.1 `Where
  818. can I get the HOWTOs and other documentation ?'.
  819.  
  820. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  821. for any of the other comp.unix.* groups that may be relevant.
  822.  
  823. Linux is a Unix clone, so almost everything you read there will apply to
  824. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  825. /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send you these
  826. files, for those who don't have FTP access).
  827.  
  828. Check the relevant HOWTO for the subject in question, if there is one, or
  829. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  830.  
  831. Try experimenting --- that's the best way to get to know Unix and Linux.
  832.  
  833. Read the documentation.  Check the manpages (type man man if you don't
  834. know about manpages.  Try man -k <subject> --- it often lists useful and
  835. relevant manpages.
  836.  
  837. Check the Info documentation (type C-h i, i.e. Control H followed by I in
  838. Emacs) --- NB this isn't just for Emacs; for example the GCC documentation
  839. lives here as well.
  840.  
  841. There will also often be a README file with a package giving installation
  842. and/or usage instructions.
  843.  
  844. Make sure that you don't have a corrupted or out-of-date copy of the
  845. program in question.  If possible, download it again and reinstall it ---
  846. perhaps you made a mistake the first time.
  847.  
  848. Read comp.os.linux.announce --- this often contains very important
  849. information for all Linux users.
  850.  
  851. X-Windows questions belong in comp.windows.x.i386unix, not in
  852. comp.os.linux.help.  But read the group first (including the FAQ), before
  853. you post !
  854.  
  855. Only if you have done all of these things and are still stuck should you
  856. post to comp.os.linux.help; alternatively you could send email to
  857. linux-support@sunsite.unc.edu.  Make sure you read the next question, Q9.2
  858. `What to put in a posting to comp.os.linux.help', first.
  859.  
  860. -------------------------------------------------------------------------------
  861.  
  862. Question 9.2.  What to put in a posting to comp.os.linux.help
  863.  
  864. Please read carefully the following advice about how to write your
  865. posting.  Taking heed of it will greatly increase the chances that an
  866. expert and/or fellow user reading your posting will have enough
  867. information and motivation to reply.
  868.  
  869. Make sure you give full details of the problem, including
  870.  
  871. * What program, exactly, you are having problems with.  Include the
  872.   version number if known and say where you got it.  Many standard
  873.   commands tell you their version number if you give them a --version
  874.   option.
  875.  
  876. * Which Linux release you're using (MCC, Slackware, whatever) and what
  877.   version of that release.
  878.  
  879. * The *exact* and *complete* text of any error messages printed.
  880.  
  881. * Exactly what behaviour you were expecting, and exactly what behaviour
  882.   you observed.  A transcript of an example session is a good way of
  883.   showing this.
  884.  
  885. * The contents of any configuration files used by the program in question
  886.   and any related programs.
  887.  
  888. * What version of the kernel and of the shared libraries you are using.
  889.   The kernel version can be found by typing uname -a, and the shared
  890.   library version by typing ls -l /lib/libc.so.4.
  891.  
  892. * Details of what hardware you're running on, if it seems appropriate.
  893.  
  894. You are in little danger of making your posting too long unless you
  895. include large chunks of source code or uuencoded files, so err on the side
  896. of giving too much information.
  897.  
  898. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  899. `Linux', `help' or `question' in it --- we already knew that ! Save the
  900. space for the name of the program, a fragment of the error message,
  901. summary of the unusual behaviour, etc.
  902.  
  903. If you are reporting an `unable to handle kernel paging request' message,
  904. follow the instructions in the Linux kernel sources README for turning the
  905. numbers into something more meaningful.  If you don't do this noone who
  906. reads your post will be able to do it for you, as the mapping from numbers
  907. to function names varies from one kernel to another.
  908.  
  909. Put a summary paragraph at the top of your posting.
  910.  
  911. At the bottom of your posting, ask for responses by email and say you'll
  912. post a summary.  Back this up by using Followup-To: poster.  Then, do
  913. actually post a summary in a few days or a week or so.  Don't just
  914. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  915. in your summary's Subject line is also a good idea.
  916.  
  917. Make sure your posting doesn't have an inappropriate References header
  918. line.  This marks your article as part of the thread of the article
  919. referred to, which will often cause it to be junked by the readers with
  920. the rest of a boring thread.  If you use (t)rn you must make sure that
  921. when you post you use the lowercase f key; using uppercase F and deleting
  922. the quoted text doesn't do the same thing.  However Some versions of trn
  923. 2.x have a bug which produces this effect effen if you use f.  If this
  924. applies to your version you can edit out the References line in the
  925. message before you post, or just use plain Pnews to make a new posting.
  926. You should always read the header before posting anyway.
  927.  
  928. You might like to say in your posting that you've read this FAQ and the
  929. appropriate HOWTOs - this may make people less likely to skip your
  930. posting.
  931.  
  932. Remember that you should not post email sent to you personally without the
  933. sender's permission.
  934.  
  935. ===============================================================================
  936.  
  937. Section 10.  Administrative information and acknowledgements
  938.  
  939.  Q10.1       Feedback is invited
  940.  Q10.2       Formats in which this FAQ is available
  941.  Q10.3       Authorship and acknowledgements
  942.  Q10.4       Disclaimer and Copyright
  943.  
  944. -------------------------------------------------------------------------------
  945.  
  946. Question 10.1.  Feedback is invited
  947.  
  948. Please send me your comments on this FAQ.
  949.  
  950. I accept submissions for the FAQ in any format;  All contributions
  951. comments and corrections are gratefully received.
  952.  
  953. Please send them to <ijackson@nyx.cs.du.edu>.
  954.  
  955. -------------------------------------------------------------------------------
  956.  
  957. Question 10.2.  Formats in which this FAQ is available
  958.  
  959. This document is available as ASCII text, an Emacs Info document and
  960. PostScript.
  961.  
  962. The ASCII and Emacs Info versions and a Lout typesetter file (from which
  963. the PostScript is produced) are generated automatically by a Perl script
  964. which takes as input a file in the Bizarre Format with No Name.
  965.  
  966. The output files linux-faq.ascii, .info and .ps and a tarfile
  967. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  968. converter, are available in the docs directories of the major Linux FTP
  969. sites.
  970.  
  971. -------------------------------------------------------------------------------
  972.  
  973. Question 10.3.  Authorship and acknowledgements
  974.  
  975. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  976. assistance and comments from others too numerous to mention.  It was
  977. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  978.  
  979. Special thanks are due to Matt Welsh, who coordinates the HOWTOs and has
  980. written substantial portions of many of them, and to Marc-Michel Corsini.
  981. Thanks also to the contributors to the previous Linux FAQ, and to those
  982. sent me comments about this FAQ, and who answered questions on the
  983. newsgroup.
  984.  
  985. Last but not least, thanks to Linus Torvalds and the other contributors to
  986. Linux for giving us something to write about !
  987.  
  988. -------------------------------------------------------------------------------
  989.  
  990. Question 10.4.  Disclaimer and Copyright
  991.  
  992. Note that this document is provided as is.  The information in it is *not*
  993. warranted to be correct; you use it at your own risk.
  994.  
  995. Following recent reports on the faq-maintainers list I think it wise to
  996. change the copyright again:
  997.  
  998. Linux Frequently Asked Questions with Answers is Copyright 1994 by Ian
  999. Jackson <ijackson@nyx.cs.du.edu>.  It may be reproduced and distributed in
  1000. whole or in part, subject to the following conditions:
  1001.  
  1002. * This copyright and permission notice and the paragraph in the
  1003.   introduction about the frequency of updates must be retained on all
  1004.   complete or partial copies.
  1005.  
  1006. * Any translation or derivative work must be approved by me before
  1007.   distribution.  Email me - I'll probably be happy to oblige !
  1008.  
  1009. * If you wish to charge for non-machine-readable copies you need my
  1010.   approval before distribution.  Note that this restriction is not
  1011.   intended to prohibit charging for the service of printing or copying a
  1012.   document supplied by your customer.
  1013.  
  1014. * If you distribute Linux Frequently Asked Questions with Answers in part,
  1015.   instructions for obtaining the complete version must be included, and a
  1016.   means for obtaining a complete version free or at cost price provided.
  1017.  
  1018. Exceptions to these rules may be granted, and I shall be happy to answer
  1019. any questions about this copyright --- write to Ian Jackson, Churchill
  1020. College, Cambridge, CB3 0DS, United Kingdom or email
  1021. ijackson@nyx.cs.du.edu.  These restrictions are here to protect the
  1022. contributors, not to restrict you as educators and learners.
  1023.  
  1024. ===============================================================================
  1025. -- 
  1026. Ian Jackson, at home  <ijackson@nyx.cs.du.edu> or <iwj10@cus.cam.ac.uk>
  1027. PGP2 public key available on server.  Urgent email: <iwj10@phx.cam.ac.uk>
  1028. 2 Lexington Close, Cambridge, CB4 3LS, England;  phone: +44 223 64238
  1029.